package com.tzy.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商家店铺表
 * </p>
 *
 * @author ljh
 * @since 2022-03-25
 */
public class Shop implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户编号
     */
    private Integer userId;

    /**
     * 店铺地址表
     */
    private String address;

    /**
     * 店铺名
     */
    private String shopName;

    /**
     * 店铺电话号码
     */
    private String phone;

    /**
     * 店铺描述
     */
    private String shopDescribe;

    /**
     * 店铺状态（0,正常、1,被封、2,审核）
     */
    private String state;

    /**
     * 店铺评分（满分5分，默认分5分）
     */
    private Integer grade;

    /**
     * 店铺头像
     */
    private String headPortrait;

    /**
     * 店铺总销量
     */
    private Integer salesVolume;

    /**
     * 店铺分类
     */
    private String shopType;

    /**
     * 店铺建立时间
     */
    private LocalDateTime shopTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getShopDescribe() {
        return shopDescribe;
    }

    public void setShopDescribe(String shopDescribe) {
        this.shopDescribe = shopDescribe;
    }
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }
    public String getHeadPortrait() {
        return headPortrait;
    }

    public void setHeadPortrait(String headPortrait) {
        this.headPortrait = headPortrait;
    }
    public Integer getSalesVolume() {
        return salesVolume;
    }

    public void setSalesVolume(Integer salesVolume) {
        this.salesVolume = salesVolume;
    }
    public String getShopType() {
        return shopType;
    }

    public void setShopType(String shopType) {
        this.shopType = shopType;
    }
    public LocalDateTime getShopTime() {
        return shopTime;
    }

    public void setShopTime(LocalDateTime shopTime) {
        this.shopTime = shopTime;
    }

    @Override
    public String toString() {
        return "Shop{" +
            "id=" + id +
            ", userId=" + userId +
            ", address=" + address +
            ", shopName=" + shopName +
            ", phone=" + phone +
            ", shopDescribe=" + shopDescribe +
            ", state=" + state +
            ", grade=" + grade +
            ", headPortrait=" + headPortrait +
            ", salesVolume=" + salesVolume +
            ", shopType=" + shopType +
            ", shopTime=" + shopTime +
        "}";
    }
}
